﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class XF_Major_AddpenaltyBLL
    {
        XF_Major_AddpenaltyDAL dal = new XF_Major_AddpenaltyDAL();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(XF_Major_AddpenaltyModel model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string maId)
        {
            return dal.Delete(maId);
        }

        /// <summary>
        /// 删除多条附加刑数据
        /// </summary>
        public bool DeleteMaIds(string maIds)
        {
            return dal.DeleteMaIds(maIds);
        }

        /// <summary>
        /// 获取法定情节调节法定刑数据
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetAdjustment(string ccid)
        {
            return dal.GetAdjustment(ccid);
        }

        /// <summary>
        /// 修改字典值名称，通过Am_ID
        /// </summary>
        public bool UpdateName(XF_Major_AddpenaltyModel model)
        {
            return dal.UpdateName(model);
        }
    }
}
